package util;

public class RandomURL {
//	private  final String[] usrs="http://item.mi.com/buyphone/mi5c,http://item.mi.com/buyphone/redminote4x,http://item.mi.com/buyphone/redmi4x".split(",");
//	private static final String[] usrs="http://item.mi.com/buyphone/minote2,http://item.mi.com/buyphone/mi5splus,http://item.mi.com/buyphone/note4,http://item.mi.com/buyphone/redmi4".split(",");
	private  final String[] usrs="http://item.mi.com/product/10000038.html".split(",");
//	
	public  int getNum(int start,int end) {  
        return (int)(Math.random()*(end-start+1)+start);  
    }  
	public  String getURL() {
		// TODO Auto-generated method stub
		int index=getNum(0,usrs.length-1);  
        String first=usrs[index];
        System.out.println(first);
        return first;
	}

}
